﻿package com.anxin.struts.action;

import com.anxin.util.PageListData;
import com.opensymphony.xwork2.ActionSupport;

public class BaseAction extends ActionSupport{
	protected PageListData pageListData;//分页组件
	protected int currentPage=1;//当前页
	protected int pageSize=15;//每页显示的数目
	protected int querytype;//查询类型
	protected String condition;//查询条件
	protected String message;
	public PageListData getPageListData() {
		return pageListData;
	}
	public void setPageListData(PageListData pageListData) {
		this.pageListData = pageListData;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getQuerytype() {
		return querytype;
	}
	public void setQuerytype(int querytype) {
		this.querytype = querytype;
	}
	public String getCondition() {
		return condition==null?"":condition.trim();
	}
	public void setCondition(String condition) {
		this.condition=(condition==null?"":condition.trim());
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
}
